package com.gsj.system.controller;

import com.gsj.common.pojo.R;
import com.gsj.system.pojo.ClientVo;
import com.gsj.system.service.ClientService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: clms-eighth01
 * @description:
 * @author: 张巍蓝
 * @create: 2021-07-30 17:08
 **/
@RestController
@RequestMapping("/system/user")
public class ClientController {
    @Autowired
    private ClientService clientService;
    @GetMapping("/login")
    public R login(String username, String password){
        return clientService.login(username,password);
    }
    @GetMapping("queryUserbyid")
    public R queryClientrbyid(Integer userid){
        return clientService.queryClientrbyid(userid);
    }



}
